package com.xx.sg.own.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xx.sg.own.entity.Dept;
import com.xx.sg.own.mapper.DeptMapper;
import com.xx.sg.own.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptServiceImpl extends ServiceImpl<DeptMapper, Dept> implements DeptService {

    @Autowired
    private DeptMapper deptMapper;

    @Override
    public List<Dept> selectAreaDeptList() {
        return deptMapper.selectAreaDeptList();
    }

    @Override
    public Dept selectDeptByPoint(Double longitude, Double latitude) {
        return deptMapper.selectDeptByPoint(longitude, latitude);
    }
}
